package com.loren.demo22.execute;

import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobKey;

@Slf4j
@DisallowConcurrentExecution
public class JobExecute implements Job {
    @Override
    public void execute(JobExecutionContext context) {
        // TODO 在此处根据参数执行对应的业务
        JobKey key = context.getJobDetail().getKey();
        log.info("name = {}", key.getName());
    }
}
